//
//  YCNormalPickerView.h
//  DemoPickerView
//
//  Created by tangkexiong on 16/3/9.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YCNormalPickerView;

#pragma mark - YCNormalPickerViewDelegate

@protocol YCNormalPickerViewDelegate <NSObject>

@optional
- (void)normalPickerViewWillShow:(YCNormalPickerView *)pickerView;
- (void)normalPickerViewWillDismiss:(YCNormalPickerView *)pickerView;
- (void)normalPickerViewDidCommit:(YCNormalPickerView *)pickerView;

@end

#pragma mark - YCNormalPickerView

/**
 *  一般选择器
 */
@interface YCNormalPickerView : UIViewController

/// 代理
@property (weak, nonatomic) id<YCNormalPickerViewDelegate> myDelegate;

@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIPickerView *pickerView;
@property (weak, nonatomic) IBOutlet UINavigationBar *naviBar;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintDlgViewBottom;

+ (instancetype)instanceWithDelegate:(id<YCNormalPickerViewDelegate>)delegate;
- (void)show;


@end
